package com.ffdms.vo;

import java.util.Date;

import android.database.Cursor;

public class Enterprise {
	public static final String TABLENAME = "Enterprise";
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_NUMBER = "number";
	public static final String COLUMN_NAME = "name";
	public static final String COLUMN_SHORTNAME = "shortName";
	public static final String COLUMN_MANAGER = "manager";
	public static final String COLUMN_SEX = "sex";
	public static final String COLUMN_POSITION = "position";
	public static final String COLUMN_MOBILEPHONE = "mobilephone";
	public static final String COLUMN_OFFICEPHONE = "officephone";
	public static final String COLUMN_EMAIL = "email";
	public static final String COLUMN_FAX = "fax";
	public static final String COLUMN_ENTERPRISETYPE = "enterpriseType";
	public static final String COLUMN_FOUNDTIME = "foundTime";
	public static final String COLUMN_AREA = "area";
	public static final String COLUMN_ADDRESS = "address";
	public static final String COLUMN_POSTCODE = "postcode";
	public static final String COLUMN_WEBSITE = "website";
	public static final String COLUMN_ADDTIME = "addTime";
	public static final String COLUMN_MODIFYTIME = "modifyTime";
	public static final String[] ALLCOLUMNS = new String[] { COLUMN_ID,
			COLUMN_NUMBER, COLUMN_NAME, COLUMN_SHORTNAME, COLUMN_MANAGER,
			COLUMN_SEX, COLUMN_POSITION, COLUMN_MOBILEPHONE,
			COLUMN_OFFICEPHONE, COLUMN_EMAIL, COLUMN_FAX,
			COLUMN_ENTERPRISETYPE, COLUMN_FOUNDTIME, COLUMN_AREA,
			COLUMN_ADDRESS, COLUMN_POSTCODE, COLUMN_WEBSITE, COLUMN_ADDTIME,
			COLUMN_MODIFYTIME };

	private int iD;
	private int number;
	private String name;
	private String shortName;
	private String manager;
	private int sex;
	private String position;
	private String mobilephone;
	private String officephone;
	private String email;
	private String fax;
	private int enterpriseType;
	private Date foundTime;
	private String area;
	private String address;
	private String postcode;
	private String website;
	private Date addTime;
	private Date modifyTime;

	public int getiD() {
		return iD;
	}

	public void setiD(int iD) {
		this.iD = iD;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getMobilephone() {
		return mobilephone;
	}

	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}

	public String getOfficephone() {
		return officephone;
	}

	public void setOfficephone(String officephone) {
		this.officephone = officephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public int getEnterpriseType() {
		return enterpriseType;
	}

	public void setEnterpriseType(int enterpriseType) {
		this.enterpriseType = enterpriseType;
	}

	public Date getFoundTime() {
		return foundTime;
	}

	public void setFoundTime(Date foundTime) {
		this.foundTime = foundTime;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	
	public Enterprise valueOf(Cursor cursor){
		this.website = cursor.getString(cursor.getColumnIndex(COLUMN_WEBSITE));
		return this;
	}
}
